package cn.itcast.bos.service.take_delivery.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.itcast.bos.dao.take_delivery.WayBillDao;
import cn.itcast.bos.domain.take_delivery.WayBill;
import cn.itcast.bos.service.take_delivery.WayBillService;

@Service
@Transactional
public class WayBillServiceImpl implements WayBillService {
	
	@Autowired
	private WayBillDao wayBillDao;

	@Override
	public void save(WayBill model) {
		wayBillDao.save(model);
	}

	@Override
	public void save(List<WayBill> list) {
		wayBillDao.save(list);
	}

	@Override
	public Page<WayBill> pageQuery(Pageable pageable) {
		return wayBillDao.findAll(pageable);
	}
}
